package com.duguo.dynamicmvc.model.resolver;

import com.duguo.dynamicmvc.support.pathinfo.PathInfo;

public class PageNumberResolver {
	
	public int resolve(PathInfo pathInfo){
		try{
			return Integer.valueOf(pathInfo.getRelativePath(1));
		}catch(Exception ignore){
			return 0;
		}
	}

}
